package com.zh.web.domain.media.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.web.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author www.itgongju.com
 * @description 评论表
 * @date 2024-11-11
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "回复实体")
@TableName("ls_reply")
public class Reply extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("评论人")
    private Long userId;

    @ApiModelProperty("关联作品")
    private Long worksId;
    @ApiModelProperty("父id,默认为0")
    private Long pId = 0L;
    @ApiModelProperty("评论内容 max2000")
    @Max(value = 2000, message = "评论内容最多2000字")
    private String content;

}
